7.8
HIGH CVSS 3.1
CVE-2021-3489
Linux kernel eBPF RINGBUF map oversized allocation
Description

The eBPF RINGBUF bpf_ringbuf_reserve() function in the Linux kernel did not check that the allocated size was smaller than the ringbuf size, allowing an attacker to perform out-of-bounds writes within the kernel and therefore, arbitrary code execution. This issue was fixed via commit 4b81ccebaeee ("bpf, ringbuf: Deny reserve of buffers larger than ringbuf") (v5.13-rc4) and backported to the stable kernels in v5.12.4, v5.11.21, and v5.10.37. It was introduced via 457f44363a88 ("bpf: Implement BPF ring buffer and verifier support for it") (v5.8-rc1).

INFO

Published Date :

June 4, 2021, 2:15 a.m.

Last Modified :

Nov. 21, 2024, 6:21 a.m.

Remotely Exploit :

No
Affected Products

The following products are affected by CVE-2021-3489 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linux linux_kernel
1 Canonical ubuntu_linux
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 2.0 HIGH [email protected]
CVSS 3.1 HIGH [email protected]
CVSS 3.1 HIGH [email protected]
Solution
The Linux kernel has an out-of-bounds write vulnerability; update and reboot.
  • Update the Linux kernel and related packages.
  • Reboot the system after the update.
Public PoC/Exploit Available at Github

CVE-2021-3489 has a 1 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2021-3489 is associated with the following CWEs:

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

eBPF学习

ebpf kernel kprobe tracepoint uprobe xdp

Updated: 8 months ago
18 stars 4 fork 4 watcher
Born at : May 1, 2021, 10:38 a.m. This repo has been linked 2 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2021-3489 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2021-3489 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git/commit/?id=4b81ccebaeee885ab1aa1438133f2991e3a2b6ea
    Added Reference https://security.netapp.com/advisory/ntap-20210716-0004/
    Added Reference https://ubuntu.com/security/notices/USN-4949-1
    Added Reference https://ubuntu.com/security/notices/USN-4950-1
    Added Reference https://www.openwall.com/lists/oss-security/2021/05/11/10
    Added Reference https://www.zerodayinitiative.com/advisories/ZDI-21-590/
  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • Modified Analysis by [email protected]

    Sep. 14, 2021

    Action Type Old Value New Value
    Changed Reference Type https://security.netapp.com/advisory/ntap-20210716-0004/ No Types Assigned https://security.netapp.com/advisory/ntap-20210716-0004/ Third Party Advisory
  • CVE Modified by [email protected]

    Jul. 16, 2021

    Action Type Old Value New Value
    Added Reference https://security.netapp.com/advisory/ntap-20210716-0004/ [No Types Assigned]
  • Reanalysis by [email protected]

    Jun. 14, 2021

    Action Type Old Value New Value
    Removed CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
    Added CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Initial Analysis by [email protected]

    Jun. 11, 2021

    Action Type Old Value New Value
    Added CVSS V2 NIST (AV:L/AC:L/Au:N/C:C/I:C/A:C)
    Added CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
    Changed Reference Type https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git/commit/?id=4b81ccebaeee885ab1aa1438133f2991e3a2b6ea No Types Assigned https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git/commit/?id=4b81ccebaeee885ab1aa1438133f2991e3a2b6ea Patch, Vendor Advisory
    Changed Reference Type https://ubuntu.com/security/notices/USN-4949-1 No Types Assigned https://ubuntu.com/security/notices/USN-4949-1 Third Party Advisory
    Changed Reference Type https://ubuntu.com/security/notices/USN-4950-1 No Types Assigned https://ubuntu.com/security/notices/USN-4950-1 Third Party Advisory
    Changed Reference Type https://www.openwall.com/lists/oss-security/2021/05/11/10 No Types Assigned https://www.openwall.com/lists/oss-security/2021/05/11/10 Mailing List, Third Party Advisory
    Changed Reference Type https://www.zerodayinitiative.com/advisories/ZDI-21-590/ No Types Assigned https://www.zerodayinitiative.com/advisories/ZDI-21-590/ Third Party Advisory, VDB Entry
    Added CWE NIST CWE-787
    Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.8 up to (excluding) 5.10.37 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.11 up to (excluding) 5.11.21 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.12 up to (excluding) 5.12.4 *cpe:2.3:o:linux:linux_kernel:5.13:-:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:5.13:rc1:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:5.13:rc2:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:5.13:rc3:*:*:*:*:*:*
    Added CPE Configuration OR *cpe:2.3:o:canonical:ubuntu_linux:20.04:*:*:*:lts:*:*:* *cpe:2.3:o:canonical:ubuntu_linux:20.10:*:*:*:*:*:*:* *cpe:2.3:o:canonical:ubuntu_linux:21.04:*:*:*:*:*:*:*
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
Base CVSS Score: 7.8
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact
Base CVSS Score: 7.2
Access Vector
Access Complexity
Authentication
Confidentiality Impact
Integrity Impact
Availability Impact
Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.09 }} -0.01%

score

0.26295

percentile